home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / WPJV1N2.ZIP / HAXTON.ZIP / LIB2.C < prev    next >
C/C++ Source or Header  |  1993-01-28  |  590b  |  27 lines

  1. //*************************************************
  2. //* lib2.c: Handles lib2.dll initialization
  3. //* R.E.Haxton '93
  4. //**************************************************
  5.  
  6. #define    NOCOMM
  7. #define    _WINDOWS
  8. #define    _WINDLL                /* DLLs need this define. It blocks out */
  9.                                     /* declarations that DLLs do not use */
  10.  
  11. #include    <windows.h>
  12. #include <stdlib.h>
  13. #include <stdio.h>
  14. #include <string.h>
  15.  
  16. int FAR PASCAL LibMain(HANDLE hInstance, WORD wDataSeg, WORD wHeapSize,
  17.                                 LPSTR lpszCmdLine)
  18. {
  19.  
  20.     if(wHeapSize != 0)
  21.         UnlockData(0);
  22.  
  23.     return(1);
  24.  
  25. } /* LibMain */
  26.  
  27.